<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
 <jsp:include page="../restab.jsp" flush="true" />
</head>
<body>
    <jsp:include page="../header.jsp" flush="true" />
        <div id = "body"> 
        <table>
        我的订单
        <c:forEach items="${listOrders}" var="order"> 
			<tbody>
			<tr>
			<td>${order.orderDate}</td>
			<td>订单号:${order.orderId}</td>
			</tr>
			  <c:forEach items="${order.orderDetails}" var="orderDetail"> 
			<tr>
			  <td>${orderDetail.product.productName}</td>
			<td>${orderDetail.quantity}件</td>
			<td>${orderDetail.discount}元</td>
			</tr>
			</c:forEach>
			  
			</tbody>
			
		</c:forEach>	
		
		</table>
    	</div>
    	
</body>
</html>